<template>
  <div class="search">
    <van-nav-bar @click-left="clickleft" style="background: #ececec;" title="" left-text="" left-arrow>
      <div slot="right" class="searcha">
        <van-search placeholder="请输入搜索关键词" show-action shape="round">
          <div slot="action" style="color: #46d0ca ;">搜索</div>
        </van-search>
      </div>
    </van-nav-bar>
    <div style="height: 2.875rem;width: 100%;"></div>
  </div>
</template>

<script>
  export default {
    data() {
      return {

      }
    },
    methods: {
      clickleft() {
        this.$router.go(-1);
        console.log(1)
      }
    }
  }
</script>

<style lang="scss">
  .search {
    .van-nav-bar {
      position: fixed !important;
      width: 100%;

      .van-icon {
        color: #46d0ca !important;
        font-size: 1.375rem !important;
      }

      .van-nav-bar__right {
        width: 90%;
        height: 100%;


        .searcha {
          width: 100%;
          display: flex;
          justify-content: center;
          align-items: center;
          height: 100%;


          .van-search {
            // background: none !important;
            border-radius: 15px;
            padding: 0 0 !important;

            .van-search__content {
              border-radius: 0 !important;
              background: none !important;

              .van-cell {
                padding: 5px 0px 5px 0 !important;

                .van-field__body {
                  border-right: 0.0625rem solid #ececec;
                }
              }
            }
          }
        }
      }
    }
  }
</style>
